Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > Bombers

Main.Bombers History

Show minor edits - Show changes to markup

January 25, 2005, at 06:40 PM by bjarne
Changed lines 1-3 from:

Tutorial has not yet been transfered from http://www.planetmedalofhonor.com/rjukanproject/

-Bjarne

to:

Bomb dropping planes tutorial

For this tut i assume you have basic knowlege of Radient, it's interface, and techniqes for brushes.

This tut should show you how to create planes that fly on a path you mark and drop a bomb where you wish. you can just imagine the uses...., in any case, to start out, make a simple map, just a skybox with the bottom textured some grass texture really. since this is just a tut, use ambientlight 70 70 70 to light up our map... make a line of info>splinepaths from one end of the map to another. make sure that when using splinepaths that they all have the angle specified toward the next splinepath in the sequence until you're done. Okay, now connect them all together, you can use the common 't' function in MOHRadiant where you targetname and target a node with t# and the next number will appear in sequence once you hit spacebar (clone). Once you've connected them all together, highlight the first one in the series and give it the following keys/values

KeyValue
#set1
targetnamebomberpath
modelvehicles/p47fly.tik
$mdlvehicles/p47fly.tik
angles0.00 0.00 0.00

Now make a trigger_multiple and put it somewhere in your map. it doesn;t matter where. make an arch and place it under it for reference in-game so you know where to go to hit it. give it the keys/values....

KeyValue
$targetnamebombertrigger
target2
#set1
cnt1

Okay: now that that's done, place an info>player>start somewhere in the map, and put the following script in the script file...


 main:
   exec global/auto.scr

   level waittill prespawn

   exec global/ambient.scr m2l2
   exec global/bomber.scr

   $world farplane 5000//fog is optional. quote it out if you like.
   $world farplane_color (.333 .333 .329)

   level waittill spawn
   level.flyplane = 1

   $player item weapons/colt45.tik
   $player ammo pistol 200
 end

Okay: you can compile at this stage but the plane won't drop any bombs as of now. it'll just spawn and fly through it's path and remove when finished with the move. To make it drop a bomb, we have to make good use of the fact that the plane is big and hollow. So... We use a tricky little optical illusion. make another splinepath path that overlaps the plane's (make sure to leave a but of room between them for now so you can changes their properties as we go along), now change the one overlapping the plane's keys/values to:

KeyValue
targetnamebombpath
modelammo/us_bomb.tik
#set1

As with the plane connect the first one to the entire path... but bend this path at the middle so that it hits a mid-point splinepath and curves downward. Adjust all the bombpath's splinepaths so that they curve as gracefully as possible toward the ground. Make sure the last one just skims the ground, so that it is neither over nor under it.

Right: that's it. Compile you map and try it out, what should happen is you hit the trigger, the plane flies above, drops it's payload, and departs. :)

Of course, you can make multiple bombs come out of the plane by making separate paths for each one. Making it easy enough to bomb out an entire building with one plane :).

The #set value is used to determine between spawns, if you use the spawnset method of spawning ai do not make a set the same as an ai's spawnset.

You can easily change the plane that appears to anything, just change the $mdl and the model value. Make sure it ends with fly.tik. the bomb is one-of-a-kind i belive, i've never found another tiki for it so keep that as us_bomb.

January 25, 2005, at 09:05 AM by bjarne
Added lines 1-3:

Tutorial has not yet been transfered from http://www.planetmedalofhonor.com/rjukanproject/

-Bjarne

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on January 31, 2005, at 04:37 PM